<%@ page language="java" pageEncoding="utf-8"%>
<script>
    $(function(){
        $.fn.window.defaults.top=50;

        var $message = $( '#actionMessage' );
        if($message.html() != null){
            var message = '';
            $message = $($message.html()); //text生成dom对象
            $message.find('li span').each(function(i,data){
                message += data.innerHTML;
            });
            if(message != ''){

                $.messager.show({
                    title:'消息提示',
                    msg:message,
                    timeout:2000,
                    showType:'slide',
                    style:{
                        right:'',
                        top:document.body.scrollTop+document.documentElement.scrollTop,
                        bottom:''
                    }
                });
            }
        }

        var $error = $( '#actionError' );
        if($error.html() != null){
            var errors = '';
            $error = $($error.html());
            $error.find('li span').each(function(i,data){
                errors += data.innerHTML;
            });
            if(errors != ''){
                $.messager.alert('出错啦！',errors,'error');
            }
        }
    });
</script>


